/*
 * @Author: ZhanXie
 * @Date: 2020-03-10 15:59:19
 * @LastEditors: ZhanXie
 * @LastEditTime: 2020-03-10 16:00:13
 * @Description:
 * @FilePath: /projectStudy/ts-axios/src/cancel/Cancel.ts
 */

export default class Cancel {
  message?: string

  constructor(message?: string) {
    this.message = message
  }
}

export function isCancel(value: any): boolean {
  return value instanceof Cancel
}
